package com.woniu.car.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author chestnuts
 * @since 2021-06-21
 */
@Data
public class TProductCategory implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 分类名
     */
    private String categoryName;

    /**
     * 分类父级编号
     */
    private Integer parentId;

    /**
     * 分类等级
     */
    private Integer categoryLevel;

    /**
     * 分类编号
     */
    private String categoryNo;

    /**
     * 创建人编号
     */
    private String createNo;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 记录添加时间
     */
    private Date rawAddTime;

    /**
     * 记录更新时间
     */
    private Date rawUpdateTime;
    @TableField(exist = false)
    private List<TProductCategory> children;


    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getCategoryLevel() {
        return categoryLevel;
    }

    public void setCategoryLevel(Integer categoryLevel) {
        this.categoryLevel = categoryLevel;
    }

    public String getCategoryNo() {
        return categoryNo;
    }

    public void setCategoryNo(String categoryNo) {
        this.categoryNo = categoryNo;
    }

    public String getCreateNo() {
        return createNo;
    }

    public void setCreateNo(String createNo) {
        this.createNo = createNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Date getRawAddTime() {
        return rawAddTime;
    }

    public void setRawAddTime(Date rawAddTime) {
        this.rawAddTime = rawAddTime;
    }

    public Date getRawUpdateTime() {
        return rawUpdateTime;
    }

    public void setRawUpdateTime(Date rawUpdateTime) {
        this.rawUpdateTime = rawUpdateTime;
    }

    @Override
    public String toString() {
        return "TProductCategory{" +
        "categoryId=" + categoryId +
        ", categoryName=" + categoryName +
        ", parentId=" + parentId +
        ", categoryLevel=" + categoryLevel +
        ", categoryNo=" + categoryNo +
        ", createNo=" + createNo +
        ", createTime=" + createTime +
        ", rawAddTime=" + rawAddTime +
        ", rawUpdateTime=" + rawUpdateTime +
        "}";
    }
}
